package com.hspedu.homework.homework14;

/**
 * @Author Stringzhua
 * @Date 2024/3/3 21:17
 * description:父类
 */
public class B extends A{
    public B(){
        System.out.println("我是B类的无参构造器");
    }
    public B(String name){
        System.out.println(name+"我是B类的有参构造");
    }
}
